home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / NextAnswers / 1394_workspace_exit_codes.rtf < prev    next >
Text File  |  1993-11-08  |  2KB  |  55 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;\f2\fmodern Ohlfs;}
  2. \paperw10620
  3. \paperh9420
  4. \margl120
  5. \margr1000
  6. {\colortbl;\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ulnone\fs28\fc0\cf0 Q:  When Workspace exits, loginwindow sends a message like the following to syslog:\
  8. \
  9.  
  10. \f1\fs24\fc1\cf1     loginwindow: Workspace exited ts 0 cd 0 rc 0 sv 0 ss 0\
  11.  
  12. \f0\fs28 \
  13. What do the codes and numbers mean?\
  14. \
  15. A:  These numbers are from the 
  16. \b status
  17. \b0  argument to a 
  18. \b wait
  19. \b0 () system call.\
  20. \
  21.  
  22. \pard\tx940\tx1620\tx3080\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-3080\li3080\fc0\cf0     ts    termsig    The signal which Workspace received causing it to exit.\
  23.     cd    coredump    Whether or not Workspace produced a core dump (0: no, non-zero: yes).\
  24.     rc    retcode    The exit code from Workspace (low-order eight bits).\
  25.     sv    stopval    If this is WSTOPPED (see <sys/wait.h>), Workspace had stopped.  (WSTOPPED is 0177 in Release 2.)\
  26.     ss    stopsig    If stopval is WSTOPPED, this is the signal which stopped Workspace.\
  27.  
  28. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc1\cf1 \
  29. The most important of these for debugging is 
  30. \b termsig
  31. \b0 : if it's non-zero, it tells you what signal caused Workspace to exit.  These signals are listed in the “signal” UNIX Manual Page, and in <sys/signal.h>.\
  32. \
  33. Let's take an example.  Assume you see the following message:\
  34. \
  35.  
  36. \f1\fs24     loginwindow: Workspace exited ts 4 cd 0 rc 0 sv 4 ss 0\
  37.  
  38. \f0\fs28\fc0\cf0 \
  39.  
  40. \fc1\cf1 The 
  41. \b ts 4
  42. \b0  indicates that Workspace received a signal 4.  Looking in 
  43. \b /usr/include/sys/signal.h
  44. \b0 , you'll find the following:\
  45. \
  46.  
  47. \f1\fs24     #define    SIGILL    4    /* illegal instruction (not                     reset when caught) */\
  48.  
  49. \f0\fs28 \
  50. In this case, Workspace terminated because of an illegal instruction.  You might want to verify that the Workspace executable is intact and has not been corrupted.\
  51. \
  52. Valid for 2.0, 3.0, 3.1\
  53. \
  54.  
  55.